﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp6
{
    public class Employee
    {
        public string Name { get; set; }

        public int Age { get; set; }

        public Work Work { get; set; }

        public override string ToString()
        {
            return string.Format("name:{0},age:{1},work:{2}", Name, Age, Work.ToString());
        }
    }

    public class Work
    {
        public string Address { get; set; }

        public string Content { get; set; }

        public int WorkAge { get; set; }

        public override string ToString()
        {
            return string.Format("Address:{0},Content:{1},WorkAge:{2}", Address, Content, WorkAge);
        }
    }
}
